package com.zcf.pojo;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * @author ZhaoQi
 * @since 2019-07-29
 */
@Data
@TableName("zcf_pumping_log")
public class PumpingLog extends Model<PumpingLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 房间号
     */
    private Integer roomid;
    /**
     * 抽水用户id
     */
    private Long userid;
    /**
     * 抽水数
     */
    private Integer pumping;
    /**
     * 当前时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 房间类型
     */
    @TableField("game_type" )
    private Integer gameType;
    /**
     * 级别
     */
    @TableField("room_grade" )
    private Integer roomGrade;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
